package com.syh.jn.scm.domain.operation.event.supplier;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.operation.entity.supplier.OperaSupplier;

/**
 * 运营端服务商事件
 */
public class OperaSupplierEvent extends DomainEvent<OperaSupplier>{
  public static final String SUPPLIER_CREATED = "supplierCreated";

  public static OperaSupplierEvent bulidOperaSupplierCreated(Object[] values){
    OperaSupplierEvent operaSupplierEvent = new OperaSupplierEvent();
    operaSupplierEvent.eventName = SUPPLIER_CREATED;
    operaSupplierEvent.values = values;
    return operaSupplierEvent;
  }

  public static final String SUPPLIER_REVERSAL_ACCOUNT = "supplierReversalAccount";

  public static OperaSupplierEvent bulidSupplierReversalAccount(Object[] values){
    OperaSupplierEvent operaSupplierEvent = new OperaSupplierEvent();
    operaSupplierEvent.eventName = SUPPLIER_REVERSAL_ACCOUNT;
    operaSupplierEvent.values = values;
    return operaSupplierEvent;
  }
}
